package com.aaa.entity.cart_order.zxh;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * fileName:Order
 * description:
 * author:zxh
 * createTime:2020/1/12 20:07
 * version:1.0.0
 */
public class Order implements Serializable {

     //ID
    private Long id;
    //订单编号
    private String order_sn;
    //会员Id
    private Long member_id;
    // 店铺ID
    private Long shop_id;
   // 提交时间
    private Date create_time;
    //订单总金额
    private Double total_amount;
    //应付金额（实际支付金额）
    private Double pay_amount;
    //运费金额
    private Double freight_amount;
    //订单类型
    private String order_type;
    //订单状态
    private Integer status;
    //自动确认时间（天）
    private Integer auto_confirm_day;
    //收票人电话
    private String bill_receiver_phone;
    //邮箱
    private String bill_receiver_email;
    //收货人姓名
    private String receiver_name;
    //邮编
    private String receiver_post_code;
    //省份/直辖市
    private String receiver_province;
    //城市
    private String receiver_city;
    //区
    private String receiver_region;
    //详细地址
    private String receiver_detail_address;
    //订单备注
    private String note;
    //确认收货状态：0->未确认；1->已确认
    private int confirm_status;
    //删除状态：0->未删除；1->已删除
    private int delete_status;
    //支付时间
    private Date payment_time;
    //商品件数
    private Integer productLength;
    //一对多关系
    private List<Order_Item> order_items;

    public Integer getProductLength() {
        return productLength;
    }

    public void setProductLength(Integer productLength) {
        this.productLength = productLength;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrder_sn() {
        return order_sn;
    }

    public void setOrder_sn(String order_sn) {
        this.order_sn = order_sn;
    }

    public Long getMember_id() {
        return member_id;
    }

    public void setMember_id(Long member_id) {
        this.member_id = member_id;
    }

    public Long getShop_id() {
        return shop_id;
    }

    public void setShop_id(Long shop_id) {
        this.shop_id = shop_id;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Double getTotal_amount() {
        return total_amount;
    }

    public void setTotal_amount(Double total_amount) {
        this.total_amount = total_amount;
    }

    public Double getPay_amount() {
        return pay_amount;
    }

    public void setPay_amount(Double pay_amount) {
        this.pay_amount = pay_amount;
    }

    public Double getFreight_amount() {
        return freight_amount;
    }

    public void setFreight_amount(Double freight_amount) {
        this.freight_amount = freight_amount;
    }

    public String getOrder_type() {
        return order_type;
    }

    public void setOrder_type(String order_type) {
        this.order_type = order_type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getAuto_confirm_day() {
        return auto_confirm_day;
    }

    public void setAuto_confirm_day(Integer auto_confirm_day) {
        this.auto_confirm_day = auto_confirm_day;
    }

    public String getBill_receiver_phone() {
        return bill_receiver_phone;
    }

    public void setBill_receiver_phone(String bill_receiver_phone) {
        this.bill_receiver_phone = bill_receiver_phone;
    }

    public String getBill_receiver_email() {
        return bill_receiver_email;
    }

    public void setBill_receiver_email(String bill_receiver_email) {
        this.bill_receiver_email = bill_receiver_email;
    }

    public String getReceiver_name() {
        return receiver_name;
    }

    public void setReceiver_name(String receiver_name) {
        this.receiver_name = receiver_name;
    }

    public String getReceiver_post_code() {
        return receiver_post_code;
    }

    public void setReceiver_post_code(String receiver_post_code) {
        this.receiver_post_code = receiver_post_code;
    }

    public String getReceiver_province() {
        return receiver_province;
    }

    public void setReceiver_province(String receiver_province) {
        this.receiver_province = receiver_province;
    }

    public String getReceiver_city() {
        return receiver_city;
    }

    public void setReceiver_city(String receiver_city) {
        this.receiver_city = receiver_city;
    }

    public String getReceiver_region() {
        return receiver_region;
    }

    public void setReceiver_region(String receiver_region) {
        this.receiver_region = receiver_region;
    }

    public String getReceiver_detail_address() {
        return receiver_detail_address;
    }

    public void setReceiver_detail_address(String receiver_detail_address) {
        this.receiver_detail_address = receiver_detail_address;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public int getConfirm_status() {
        return confirm_status;
    }

    public void setConfirm_status(int confirm_status) {
        this.confirm_status = confirm_status;
    }

    public int getDelete_status() {
        return delete_status;
    }

    public void setDelete_status(int delete_status) {
        this.delete_status = delete_status;
    }

    public Date getPayment_time() {
        return payment_time;
    }

    public void setPayment_time(Date payment_time) {
        this.payment_time = payment_time;
    }

    public List<Order_Item> getOrder_items() {
        return order_items;
    }

    public void setOrder_items(List<Order_Item> order_items) {
        this.order_items = order_items;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", order_sn='" + order_sn + '\'' +
                ", member_id=" + member_id +
                ", shop_id=" + shop_id +
                ", create_time=" + create_time +
                ", total_amount=" + total_amount +
                ", pay_amount=" + pay_amount +
                ", freight_amount=" + freight_amount +
                ", order_type='" + order_type + '\'' +
                ", status=" + status +
                ", auto_confirm_day=" + auto_confirm_day +
                ", bill_receiver_phone='" + bill_receiver_phone + '\'' +
                ", bill_receiver_email='" + bill_receiver_email + '\'' +
                ", receiver_name='" + receiver_name + '\'' +
                ", receiver_post_code='" + receiver_post_code + '\'' +
                ", receiver_province='" + receiver_province + '\'' +
                ", receiver_city='" + receiver_city + '\'' +
                ", receiver_region='" + receiver_region + '\'' +
                ", receiver_detail_address='" + receiver_detail_address + '\'' +
                ", note='" + note + '\'' +
                ", confirm_status=" + confirm_status +
                ", delete_status=" + delete_status +
                ", payment_time=" + payment_time +
                ", order_items=" + order_items +
                '}';
    }
}
